package com.duobaoyu.dby.supply.common.biz.dto.log;

import org.apache.commons.lang3.builder.Diff;

/**
 * @author chenms
 * @date 2023/11/10 2:51 PM
 */
public class LogDiff extends Diff {

    /**
     * 旧值
     */
    private final Object oldVal;

    /**
     * 新值
     */
    private final Object newVal;

    public LogDiff(String fieldName, String oldValue, String newValue) {
        super(fieldName);
        this.oldVal = oldValue;
        this.newVal = newValue;
    }

    @Override
    public Object getLeft() {
        return oldVal;
    }

    @Override
    public Object getRight() {
        return newVal;
    }
}
